<?php
/**
* @author: Nguyen Thanh Tung
* @date: Monday, January 27, 2014
*/
// check permission add new

if( !isset($AppUI->id))//||
//!isset($_SESSION['uniform'])||
//isset($_SESSION['uniform'])&& ($_SESSION['uniform']&1<<1)==0)
{
	/*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/ 
	redirect(HOST_BACKEND);
}
//$this->smarty->assign('clubid',(int)$this->uri->segment(3));
$this->load->model('national_model','national');
$arrnational = $this->national->getAll();

$this->load->model('year_model','year');
$years = $this->year->getAll(1800,2014);

$this->load->model('league_model','league');
$league = $this->league->getAll();

$this->smarty->assign('league',$league);
$this->smarty->assign('years',$years);
$this->smarty->assign('arrnational',$arrnational);
$this->smarty->display('playersquad/add.tpl');